package com.starchen.optimalselection.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.starchen.optimalselection.common.model.Category;

import java.util.List;

/**
 * 商品三级分类
 *
 * @author daxilong
 * @email daxilong@gmail.com
 * @date 2022-08-14 19:57:36
 */
public interface CategoryService extends IService<Category> {

    List<Category> getTreeList();

    /**
     * 找到catelogId的完整路径；
     * [父/子/孙]
     * @param cateId
     * @return
     */
    Long[] getCategoryPath(Long cateId);

    List<Category> getOneLevelCategory();
}

